package com.example.pestcontrol.generaluser;

import org.kymjs.kjframe.KJActivity;
import org.kymjs.kjframe.KJBitmap;
import org.kymjs.kjframe.ui.BindView;

import android.widget.ImageView;
import android.widget.TextView;

import com.example.pestcontrol.R;
import com.example.pestcontrol.constant.Constant;

public class GBrowseDiseaseInformationFragmentProfileActivity extends
		KJActivity {

	KJBitmap kjb;
	String e_d_name, e_d_profile, e_d_image;
	@BindView(id = R.id.title)
	private TextView title;
	@BindView(id = R.id.g_d_info_profile)
	private TextView g_d_info_profile;
	@BindView(id = R.id.g_d_info_image)
	private ImageView g_d_info_image;

	@Override
	public void setRootView() {
		setContentView(R.layout.g_browse_disease_information_fragment_profile_activity);
	}

	@Override
	public void initData() {
		kjb = new KJBitmap();
		e_d_image = getIntent().getStringExtra("e_d_image");
		e_d_name = getIntent().getStringExtra("e_d_name");
		e_d_profile = getIntent().getStringExtra("e_d_profile");
		super.initData();
	}

	@Override
	public void initWidget() {
		title.setText(e_d_name);
		g_d_info_profile.setText(e_d_profile);
		kjb.display(g_d_info_image, Constant.url + e_d_image);
		super.initWidget();
	}

}
